import service from '@/utils/request'
// @Tags A订单
// @Summary 创建订单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A订单 true "创建订单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /dingdan/createA订单 [post]
export const createA订单 = (data) => {
  return service({
    url: '/dingdan/createA订单',
    method: 'post',
    data
  })
}

// @Tags A订单
// @Summary 删除订单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A订单 true "删除订单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /dingdan/deleteA订单 [delete]
export const deleteA订单 = (params) => {
  return service({
    url: '/dingdan/deleteA订单',
    method: 'delete',
    params
  })
}

// @Tags A订单
// @Summary 批量删除订单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除订单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /dingdan/deleteA订单 [delete]
export const deleteA订单ByIds = (params) => {
  return service({
    url: '/dingdan/deleteA订单ByIds',
    method: 'delete',
    params
  })
}

// @Tags A订单
// @Summary 更新订单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A订单 true "更新订单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /dingdan/updateA订单 [put]
export const updateA订单 = (data) => {
  return service({
    url: '/dingdan/updateA订单',
    method: 'put',
    data
  })
}

// @Tags A订单
// @Summary 用id查询订单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.A订单 true "用id查询订单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /dingdan/findA订单 [get]
export const findA订单 = (params) => {
  return service({
    url: '/dingdan/findA订单',
    method: 'get',
    params
  })
}

// @Tags A订单
// @Summary 分页获取订单列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取订单列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /dingdan/getA订单List [get]
export const getA订单List = (params) => {
  return service({
    url: '/dingdan/getA订单List',
    method: 'get',
    params
  })
}
// @Tags A订单
// @Summary 获取数据源
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /dingdan/findA订单DataSource [get]
export const getA订单DataSource = () => {
  return service({
    url: '/dingdan/getA订单DataSource',
    method: 'get',
  })
}
// @Tags A订单
// @Summary 不需要鉴权的订单接口
// @accept application/json
// @Produce application/json
// @Param data query request.A订单Search true "分页获取订单列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /dingdan/getA订单Public [get]
export const getA订单Public = () => {
  return service({
    url: '/dingdan/getA订单Public',
    method: 'get',
  })
}